const forget = {
    location: 'Sweden',
    animals: 3,
    animalsTypes: ['Lions', 'Tigers', 'Bears']
}
// es6 解构
const { location:io, animals, animalsTypes, nickname = '未命名'} = forget;
// 冒号：取别名   用 = 提供默认值
console.log(io, nickname);

const [Lions, Tigers, Bears] = animalsTypes;
console.log(Lions, Tigers, Bears);